﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SunFlowerPlant : BasePlant
{
    private float mTimer = 10.0f;
    private float mCurrentTime = 0.0f;

    private void Update()
    {
        mCurrentTime += Time.deltaTime;
        if (mCurrentTime >= mTimer)
        {
            mCurrentTime = 0;
            //创建子弹
            GameObject bullet = Resources.Load<GameObject>("SunflowerStar");
            bullet = Instantiate(bullet);
            bullet.transform.SetParent(this.transform, false);
        }
    }
}
